n = int(input())
lines = set()
for _ in range(n):
    x1, y1, x2, y2 = map(int, input().split())
    a = (y1 - y2) / (x1 * y2 - x2 * y1)
    b = (x1 - x2) / (y1 * x2 - x1 * y2)
    lines.add((a, b))
print(lines)
